// 使用{uniqueIdentifier}模板，稍后我们将使用hexo的事件机制，替换成ISO时间，作为每次构建的唯一标识符
var cacheName = 'chemexpert-0.1.230617';
// 在这个数组里面写入您主页加载需要的资源文件
var filesToCache = [
    '/',
    '/css',
    '/image',
    '/index.html',
    '/js',
    '/list.txt',
    '/manifest.json',
    '/nodemon.json',
    '/package.json',
    '/pages',
    '/public',
    '/README.md',
    '/server.js',
    '/sw.js',
    '/css/ang.css',
    '/css/antd.css',
    '/css/cxd.css',
    '/css/dark.css',
    '/css/helper.css',
    '/css/iconfont.css',
    '/css/iconfont.eot',
    '/css/iconfont.svg',
    '/css/iconfont.ttf',
    '/css/iconfont.woff',
    '/css/QRCode.css',
    '/css/sdk.css',
    '/css/thirds',
    '/css/thirds/@fortawesome',
    '/css/thirds/hls.js',
    '/css/thirds/markdown-it',
    '/css/thirds/monaco-editor',
    '/css/thirds/mpegts.js',
    '/css/thirds/PaxHeader',
    '/css/thirds/@fortawesome/fontawesome-free',
    '/css/thirds/@fortawesome/PaxHeader',
    '/css/thirds/@fortawesome/fontawesome-free/PaxHeader',
    '/css/thirds/@fortawesome/fontawesome-free/webfonts',
    '/css/thirds/@fortawesome/fontawesome-free/PaxHeader/webfonts',
    '/css/thirds/@fortawesome/fontawesome-free/webfonts/fa-brands-400.ttf',
    '/css/thirds/@fortawesome/fontawesome-free/webfonts/fa-brands-400.woff2',
    '/css/thirds/@fortawesome/fontawesome-free/webfonts/fa-regular-400.ttf',
    '/css/thirds/@fortawesome/fontawesome-free/webfonts/fa-regular-400.woff2',
    '/css/thirds/@fortawesome/fontawesome-free/webfonts/fa-solid-900.ttf',
    '/css/thirds/@fortawesome/fontawesome-free/webfonts/fa-solid-900.woff2',
    '/css/thirds/@fortawesome/fontawesome-free/webfonts/fa-v4compatibility.ttf',
    '/css/thirds/@fortawesome/fontawesome-free/webfonts/fa-v4compatibility.woff2',
    '/css/thirds/@fortawesome/fontawesome-free/webfonts/PaxHeader',
    '/css/thirds/@fortawesome/fontawesome-free/webfonts/PaxHeader/fa-brands-400.ttf',
    '/css/thirds/@fortawesome/fontawesome-free/webfonts/PaxHeader/fa-brands-400.woff2',
    '/css/thirds/@fortawesome/fontawesome-free/webfonts/PaxHeader/fa-regular-400.ttf',
    '/css/thirds/@fortawesome/fontawesome-free/webfonts/PaxHeader/fa-regular-400.woff2',
    '/css/thirds/@fortawesome/fontawesome-free/webfonts/PaxHeader/fa-solid-900.ttf',
    '/css/thirds/@fortawesome/fontawesome-free/webfonts/PaxHeader/fa-solid-900.woff2',
    '/css/thirds/@fortawesome/fontawesome-free/webfonts/PaxHeader/fa-v4compatibility.ttf',
    '/css/thirds/@fortawesome/fontawesome-free/webfonts/PaxHeader/fa-v4compatibility.woff2',
    '/css/thirds/@fortawesome/PaxHeader/fontawesome-free',
    '/css/thirds/hls.js/hls.js',
    '/css/thirds/hls.js/PaxHeader',
    '/css/thirds/hls.js/PaxHeader/hls.js',
    '/css/thirds/markdown-it/node_modules',
    '/css/thirds/markdown-it/PaxHeader',
    '/css/thirds/markdown-it/node_modules/entities',
    '/css/thirds/markdown-it/node_modules/PaxHeader',
    '/css/thirds/markdown-it/node_modules/entities/lib',
    '/css/thirds/markdown-it/node_modules/entities/PaxHeader',
    '/css/thirds/markdown-it/node_modules/entities/lib/maps',
    '/css/thirds/markdown-it/node_modules/entities/lib/PaxHeader',
    '/css/thirds/markdown-it/node_modules/entities/lib/maps/entities.json',
    '/css/thirds/markdown-it/node_modules/entities/lib/maps/PaxHeader',
    '/css/thirds/markdown-it/node_modules/entities/lib/maps/PaxHeader/entities.json',
    '/css/thirds/markdown-it/node_modules/entities/lib/PaxHeader/maps',
    '/css/thirds/markdown-it/node_modules/entities/PaxHeader/lib',
    '/css/thirds/markdown-it/node_modules/PaxHeader/entities',
    '/css/thirds/markdown-it/PaxHeader/node_modules',
    '/css/thirds/monaco-editor/min',
    '/css/thirds/monaco-editor/PaxHeader',
    '/css/thirds/monaco-editor/min/PaxHeader',
    '/css/thirds/monaco-editor/min/vs',
    '/css/thirds/monaco-editor/min/PaxHeader/vs',
    '/css/thirds/monaco-editor/min/vs/base',
    '/css/thirds/monaco-editor/min/vs/basic-languages',
    '/css/thirds/monaco-editor/min/vs/editor',
    '/css/thirds/monaco-editor/min/vs/language',
    '/css/thirds/monaco-editor/min/vs/loader.js',
    '/css/thirds/monaco-editor/min/vs/PaxHeader',
    '/css/thirds/monaco-editor/min/vs/base/browser',
    '/css/thirds/monaco-editor/min/vs/base/PaxHeader',
    '/css/thirds/monaco-editor/min/vs/base/worker',
    '/css/thirds/monaco-editor/min/vs/base/browser/PaxHeader',
    '/css/thirds/monaco-editor/min/vs/base/browser/ui',
    '/css/thirds/monaco-editor/min/vs/base/browser/PaxHeader/ui',
    '/css/thirds/monaco-editor/min/vs/base/browser/ui/codicons',
    '/css/thirds/monaco-editor/min/vs/base/browser/ui/PaxHeader',
    '/css/thirds/monaco-editor/min/vs/base/browser/ui/codicons/codicon',
    '/css/thirds/monaco-editor/min/vs/base/browser/ui/codicons/PaxHeader',
    '/css/thirds/monaco-editor/min/vs/base/browser/ui/codicons/codicon/codicon.ttf',
    '/css/thirds/monaco-editor/min/vs/base/browser/ui/codicons/codicon/PaxHeader',
    '/css/thirds/monaco-editor/min/vs/base/browser/ui/codicons/codicon/PaxHeader/codicon.ttf',
    '/css/thirds/monaco-editor/min/vs/base/browser/ui/codicons/PaxHeader/codicon',
    '/css/thirds/monaco-editor/min/vs/base/browser/ui/PaxHeader/codicons',
    '/css/thirds/monaco-editor/min/vs/base/PaxHeader/browser',
    '/css/thirds/monaco-editor/min/vs/base/PaxHeader/worker',
    '/css/thirds/monaco-editor/min/vs/base/worker/PaxHeader',
    '/css/thirds/monaco-editor/min/vs/base/worker/workerMain.js',
    '/css/thirds/monaco-editor/min/vs/base/worker/PaxHeader/workerMain.js',
    '/css/thirds/monaco-editor/min/vs/basic-languages/apex',
    '/css/thirds/monaco-editor/min/vs/basic-languages/azcli',
    '/css/thirds/monaco-editor/min/vs/basic-languages/bat',
    '/css/thirds/monaco-editor/min/vs/basic-languages/clojure',
    '/css/thirds/monaco-editor/min/vs/basic-languages/coffee',
    '/css/thirds/monaco-editor/min/vs/basic-languages/cpp',
    '/css/thirds/monaco-editor/min/vs/basic-languages/csharp',
    '/css/thirds/monaco-editor/min/vs/basic-languages/css',
    '/css/thirds/monaco-editor/min/vs/basic-languages/dockerfile',
    '/css/thirds/monaco-editor/min/vs/basic-languages/fsharp',
    '/css/thirds/monaco-editor/min/vs/basic-languages/go',
    '/css/thirds/monaco-editor/min/vs/basic-languages/handlebars',
    '/css/thirds/monaco-editor/min/vs/basic-languages/html',
    '/css/thirds/monaco-editor/min/vs/basic-languages/ini',
    '/css/thirds/monaco-editor/min/vs/basic-languages/java',
    '/css/thirds/monaco-editor/min/vs/basic-languages/javascript',
    '/css/thirds/monaco-editor/min/vs/basic-languages/less',
    '/css/thirds/monaco-editor/min/vs/basic-languages/lua',
    '/css/thirds/monaco-editor/min/vs/basic-languages/markdown',
    '/css/thirds/monaco-editor/min/vs/basic-languages/msdax',
    '/css/thirds/monaco-editor/min/vs/basic-languages/objective-c',
    '/css/thirds/monaco-editor/min/vs/basic-languages/PaxHeader',
    '/css/thirds/monaco-editor/min/vs/basic-languages/php',
    '/css/thirds/monaco-editor/min/vs/basic-languages/postiats',
    '/css/thirds/monaco-editor/min/vs/basic-languages/powershell',
    '/css/thirds/monaco-editor/min/vs/basic-languages/pug',
    '/css/thirds/monaco-editor/min/vs/basic-languages/python',
    '/css/thirds/monaco-editor/min/vs/basic-languages/r',
    '/css/thirds/monaco-editor/min/vs/basic-languages/razor',
    '/css/thirds/monaco-editor/min/vs/basic-languages/redis',
    '/css/thirds/monaco-editor/min/vs/basic-languages/redshift',
    '/css/thirds/monaco-editor/min/vs/basic-languages/ruby',
    '/css/thirds/monaco-editor/min/vs/basic-languages/rust',
    '/css/thirds/monaco-editor/min/vs/basic-languages/sb',
    '/css/thirds/monaco-editor/min/vs/basic-languages/scheme',
    '/css/thirds/monaco-editor/min/vs/basic-languages/scss',
    '/css/thirds/monaco-editor/min/vs/basic-languages/shell',
    '/css/thirds/monaco-editor/min/vs/basic-languages/solidity',
    '/css/thirds/monaco-editor/min/vs/basic-languages/sql',
    '/css/thirds/monaco-editor/min/vs/basic-languages/st',
    '/css/thirds/monaco-editor/min/vs/basic-languages/swift',
    '/css/thirds/monaco-editor/min/vs/basic-languages/typescript',
    '/css/thirds/monaco-editor/min/vs/basic-languages/vb',
    '/css/thirds/monaco-editor/min/vs/basic-languages/xml',
    '/css/thirds/monaco-editor/min/vs/basic-languages/yaml',
    '/css/thirds/monaco-editor/min/vs/basic-languages/apex/apex.js',
    '/css/thirds/monaco-editor/min/vs/basic-languages/apex/PaxHeader',
    '/css/thirds/monaco-editor/min/vs/basic-languages/apex/PaxHeader/apex.js',
    '/css/thirds/monaco-editor/min/vs/basic-languages/azcli/azcli.js',
    '/css/thirds/monaco-editor/min/vs/basic-languages/azcli/PaxHeader',
    '/css/thirds/monaco-editor/min/vs/basic-languages/azcli/PaxHeader/azcli.js',
    '/css/thirds/monaco-editor/min/vs/basic-languages/bat/bat.js',
    '/css/thirds/monaco-editor/min/vs/basic-languages/bat/PaxHeader',
    '/css/thirds/monaco-editor/min/vs/basic-languages/bat/PaxHeader/bat.js',
    '/css/thirds/monaco-editor/min/vs/basic-languages/clojure/clojure.js',
    '/css/thirds/monaco-editor/min/vs/basic-languages/clojure/PaxHeader',
    '/css/thirds/monaco-editor/min/vs/basic-languages/clojure/PaxHeader/clojure.js',
    '/css/thirds/monaco-editor/min/vs/basic-languages/coffee/coffee.js',
    '/css/thirds/monaco-editor/min/vs/basic-languages/coffee/PaxHeader',
    '/css/thirds/monaco-editor/min/vs/basic-languages/coffee/PaxHeader/coffee.js',
    '/css/thirds/monaco-editor/min/vs/basic-languages/cpp/cpp.js',
    '/css/thirds/monaco-editor/min/vs/basic-languages/cpp/PaxHeader',
    '/css/thirds/monaco-editor/min/vs/basic-languages/cpp/PaxHeader/cpp.js',
    '/css/thirds/monaco-editor/min/vs/basic-languages/csharp/csharp.js',
    '/css/thirds/monaco-editor/min/vs/basic-languages/csharp/PaxHeader',
    '/css/thirds/monaco-editor/min/vs/basic-languages/csharp/PaxHeader/csharp.js',
    '/css/thirds/monaco-editor/min/vs/basic-languages/css/css.js',
    '/css/thirds/monaco-editor/min/vs/basic-languages/css/PaxHeader',
    '/css/thirds/monaco-editor/min/vs/basic-languages/css/PaxHeader/css.js',
    '/css/thirds/monaco-editor/min/vs/basic-languages/dockerfile/dockerfile.js',
    '/css/thirds/monaco-editor/min/vs/basic-languages/dockerfile/PaxHeader',
    '/css/thirds/monaco-editor/min/vs/basic-languages/dockerfile/PaxHeader/dockerfile.js',
    '/css/thirds/monaco-editor/min/vs/basic-languages/fsharp/fsharp.js',
    '/css/thirds/monaco-editor/min/vs/basic-languages/fsharp/PaxHeader',
    '/css/thirds/monaco-editor/min/vs/basic-languages/fsharp/PaxHeader/fsharp.js',
    '/css/thirds/monaco-editor/min/vs/basic-languages/go/go.js',
    '/css/thirds/monaco-editor/min/vs/basic-languages/go/PaxHeader',
    '/css/thirds/monaco-editor/min/vs/basic-languages/go/PaxHeader/go.js',
    '/css/thirds/monaco-editor/min/vs/basic-languages/handlebars/handlebars.js',
    '/css/thirds/monaco-editor/min/vs/basic-languages/handlebars/PaxHeader',
    '/css/thirds/monaco-editor/min/vs/basic-languages/handlebars/PaxHeader/handlebars.js',
    '/css/thirds/monaco-editor/min/vs/basic-languages/html/html.js',
    '/css/thirds/monaco-editor/min/vs/basic-languages/html/PaxHeader',
    '/css/thirds/monaco-editor/min/vs/basic-languages/html/PaxHeader/html.js',
    '/css/thirds/monaco-editor/min/vs/basic-languages/ini/ini.js',
    '/css/thirds/monaco-editor/min/vs/basic-languages/ini/PaxHeader',
    '/css/thirds/monaco-editor/min/vs/basic-languages/ini/PaxHeader/ini.js',
    '/css/thirds/monaco-editor/min/vs/basic-languages/java/java.js',
    '/css/thirds/monaco-editor/min/vs/basic-languages/java/PaxHeader',
    '/css/thirds/monaco-editor/min/vs/basic-languages/java/PaxHeader/java.js',
    '/css/thirds/monaco-editor/min/vs/basic-languages/javascript/javascript.js',
    '/css/thirds/monaco-editor/min/vs/basic-languages/javascript/PaxHeader',
    '/css/thirds/monaco-editor/min/vs/basic-languages/javascript/PaxHeader/javascript.js',
    '/css/thirds/monaco-editor/min/vs/basic-languages/less/less.js',
    '/css/thirds/monaco-editor/min/vs/basic-languages/less/PaxHeader',
    '/css/thirds/monaco-editor/min/vs/basic-languages/less/PaxHeader/less.js',
    '/css/thirds/monaco-editor/min/vs/basic-languages/lua/lua.js',
    '/css/thirds/monaco-editor/min/vs/basic-languages/lua/PaxHeader',
    '/css/thirds/monaco-editor/min/vs/basic-languages/lua/PaxHeader/lua.js',
    '/css/thirds/monaco-editor/min/vs/basic-languages/markdown/markdown.js',
    '/css/thirds/monaco-editor/min/vs/basic-languages/markdown/PaxHeader',
    '/css/thirds/monaco-editor/min/vs/basic-languages/markdown/PaxHeader/markdown.js',
    '/css/thirds/monaco-editor/min/vs/basic-languages/msdax/msdax.js',
    '/css/thirds/monaco-editor/min/vs/basic-languages/msdax/PaxHeader',
    '/css/thirds/monaco-editor/min/vs/basic-languages/msdax/PaxHeader/msdax.js',
    '/css/thirds/monaco-editor/min/vs/basic-languages/objective-c/objective-c.js',
    '/css/thirds/monaco-editor/min/vs/basic-languages/objective-c/PaxHeader',
    '/css/thirds/monaco-editor/min/vs/basic-languages/objective-c/PaxHeader/objective-c.js',
    '/css/thirds/monaco-editor/min/vs/basic-languages/PaxHeader/apex',
    '/css/thirds/monaco-editor/min/vs/basic-languages/PaxHeader/azcli',
    '/css/thirds/monaco-editor/min/vs/basic-languages/PaxHeader/bat',
    '/css/thirds/monaco-editor/min/vs/basic-languages/PaxHeader/clojure',
    '/css/thirds/monaco-editor/min/vs/basic-languages/PaxHeader/coffee',
    '/css/thirds/monaco-editor/min/vs/basic-languages/PaxHeader/cpp',
    '/css/thirds/monaco-editor/min/vs/basic-languages/PaxHeader/csharp',
    '/css/thirds/monaco-editor/min/vs/basic-languages/PaxHeader/css',
    '/css/thirds/monaco-editor/min/vs/basic-languages/PaxHeader/dockerfile',
    '/css/thirds/monaco-editor/min/vs/basic-languages/PaxHeader/fsharp',
    '/css/thirds/monaco-editor/min/vs/basic-languages/PaxHeader/go',
    '/css/thirds/monaco-editor/min/vs/basic-languages/PaxHeader/handlebars',
    '/css/thirds/monaco-editor/min/vs/basic-languages/PaxHeader/html',
    '/css/thirds/monaco-editor/min/vs/basic-languages/PaxHeader/ini',
    '/css/thirds/monaco-editor/min/vs/basic-languages/PaxHeader/java',
    '/css/thirds/monaco-editor/min/vs/basic-languages/PaxHeader/javascript',
    '/css/thirds/monaco-editor/min/vs/basic-languages/PaxHeader/less',
    '/css/thirds/monaco-editor/min/vs/basic-languages/PaxHeader/lua',
    '/css/thirds/monaco-editor/min/vs/basic-languages/PaxHeader/markdown',
    '/css/thirds/monaco-editor/min/vs/basic-languages/PaxHeader/msdax',
    '/css/thirds/monaco-editor/min/vs/basic-languages/PaxHeader/objective-c',
    '/css/thirds/monaco-editor/min/vs/basic-languages/PaxHeader/php',
    '/css/thirds/monaco-editor/min/vs/basic-languages/PaxHeader/postiats',
    '/css/thirds/monaco-editor/min/vs/basic-languages/PaxHeader/powershell',
    '/css/thirds/monaco-editor/min/vs/basic-languages/PaxHeader/pug',
    '/css/thirds/monaco-editor/min/vs/basic-languages/PaxHeader/python',
    '/css/thirds/monaco-editor/min/vs/basic-languages/PaxHeader/r',
    '/css/thirds/monaco-editor/min/vs/basic-languages/PaxHeader/razor',
    '/css/thirds/monaco-editor/min/vs/basic-languages/PaxHeader/redis',
    '/css/thirds/monaco-editor/min/vs/basic-languages/PaxHeader/redshift',
    '/css/thirds/monaco-editor/min/vs/basic-languages/PaxHeader/ruby',
    '/css/thirds/monaco-editor/min/vs/basic-languages/PaxHeader/rust',
    '/css/thirds/monaco-editor/min/vs/basic-languages/PaxHeader/sb',
    '/css/thirds/monaco-editor/min/vs/basic-languages/PaxHeader/scheme',
    '/css/thirds/monaco-editor/min/vs/basic-languages/PaxHeader/scss',
    '/css/thirds/monaco-editor/min/vs/basic-languages/PaxHeader/shell',
    '/css/thirds/monaco-editor/min/vs/basic-languages/PaxHeader/solidity',
    '/css/thirds/monaco-editor/min/vs/basic-languages/PaxHeader/sql',
    '/css/thirds/monaco-editor/min/vs/basic-languages/PaxHeader/st',
    '/css/thirds/monaco-editor/min/vs/basic-languages/PaxHeader/swift',
    '/css/thirds/monaco-editor/min/vs/basic-languages/PaxHeader/typescript',
    '/css/thirds/monaco-editor/min/vs/basic-languages/PaxHeader/vb',
    '/css/thirds/monaco-editor/min/vs/basic-languages/PaxHeader/xml',
    '/css/thirds/monaco-editor/min/vs/basic-languages/PaxHeader/yaml',
    '/css/thirds/monaco-editor/min/vs/basic-languages/php/PaxHeader',
    '/css/thirds/monaco-editor/min/vs/basic-languages/php/php.js',
    '/css/thirds/monaco-editor/min/vs/basic-languages/php/PaxHeader/php.js',
    '/css/thirds/monaco-editor/min/vs/basic-languages/postiats/PaxHeader',
    '/css/thirds/monaco-editor/min/vs/basic-languages/postiats/postiats.js',
    '/css/thirds/monaco-editor/min/vs/basic-languages/postiats/PaxHeader/postiats.js',
    '/css/thirds/monaco-editor/min/vs/basic-languages/powershell/PaxHeader',
    '/css/thirds/monaco-editor/min/vs/basic-languages/powershell/powershell.js',
    '/css/thirds/monaco-editor/min/vs/basic-languages/powershell/PaxHeader/powershell.js',
    '/css/thirds/monaco-editor/min/vs/basic-languages/pug/PaxHeader',
    '/css/thirds/monaco-editor/min/vs/basic-languages/pug/pug.js',
    '/css/thirds/monaco-editor/min/vs/basic-languages/pug/PaxHeader/pug.js',
    '/css/thirds/monaco-editor/min/vs/basic-languages/python/PaxHeader',
    '/css/thirds/monaco-editor/min/vs/basic-languages/python/python.js',
    '/css/thirds/monaco-editor/min/vs/basic-languages/python/PaxHeader/python.js',
    '/css/thirds/monaco-editor/min/vs/basic-languages/r/PaxHeader',
    '/css/thirds/monaco-editor/min/vs/basic-languages/r/r.js',
    '/css/thirds/monaco-editor/min/vs/basic-languages/r/PaxHeader/r.js',
    '/css/thirds/monaco-editor/min/vs/basic-languages/razor/PaxHeader',
    '/css/thirds/monaco-editor/min/vs/basic-languages/razor/razor.js',
    '/css/thirds/monaco-editor/min/vs/basic-languages/razor/PaxHeader/razor.js',
    '/css/thirds/monaco-editor/min/vs/basic-languages/redis/PaxHeader',
    '/css/thirds/monaco-editor/min/vs/basic-languages/redis/redis.js',
    '/css/thirds/monaco-editor/min/vs/basic-languages/redis/PaxHeader/redis.js',
    '/css/thirds/monaco-editor/min/vs/basic-languages/redshift/PaxHeader',
    '/css/thirds/monaco-editor/min/vs/basic-languages/redshift/redshift.js',
    '/css/thirds/monaco-editor/min/vs/basic-languages/redshift/PaxHeader/redshift.js',
    '/css/thirds/monaco-editor/min/vs/basic-languages/ruby/PaxHeader',
    '/css/thirds/monaco-editor/min/vs/basic-languages/ruby/ruby.js',
    '/css/thirds/monaco-editor/min/vs/basic-languages/ruby/PaxHeader/ruby.js',
    '/css/thirds/monaco-editor/min/vs/basic-languages/rust/PaxHeader',
    '/css/thirds/monaco-editor/min/vs/basic-languages/rust/rust.js',
    '/css/thirds/monaco-editor/min/vs/basic-languages/rust/PaxHeader/rust.js',
    '/css/thirds/monaco-editor/min/vs/basic-languages/sb/PaxHeader',
    '/css/thirds/monaco-editor/min/vs/basic-languages/sb/sb.js',
    '/css/thirds/monaco-editor/min/vs/basic-languages/sb/PaxHeader/sb.js',
    '/css/thirds/monaco-editor/min/vs/basic-languages/scheme/PaxHeader',
    '/css/thirds/monaco-editor/min/vs/basic-languages/scheme/scheme.js',
    '/css/thirds/monaco-editor/min/vs/basic-languages/scheme/PaxHeader/scheme.js',
    '/css/thirds/monaco-editor/min/vs/basic-languages/scss/PaxHeader',
    '/css/thirds/monaco-editor/min/vs/basic-languages/scss/scss.js',
    '/css/thirds/monaco-editor/min/vs/basic-languages/scss/PaxHeader/scss.js',
    '/css/thirds/monaco-editor/min/vs/basic-languages/shell/PaxHeader',
    '/css/thirds/monaco-editor/min/vs/basic-languages/shell/shell.js',
    '/css/thirds/monaco-editor/min/vs/basic-languages/shell/PaxHeader/shell.js',
    '/css/thirds/monaco-editor/min/vs/basic-languages/solidity/PaxHeader',
    '/css/thirds/monaco-editor/min/vs/basic-languages/solidity/solidity.js',
    '/css/thirds/monaco-editor/min/vs/basic-languages/solidity/PaxHeader/solidity.js',
    '/css/thirds/monaco-editor/min/vs/basic-languages/sql/PaxHeader',
    '/css/thirds/monaco-editor/min/vs/basic-languages/sql/sql.js',
    '/css/thirds/monaco-editor/min/vs/basic-languages/sql/PaxHeader/sql.js',
    '/css/thirds/monaco-editor/min/vs/basic-languages/st/PaxHeader',
    '/css/thirds/monaco-editor/min/vs/basic-languages/st/st.js',
    '/css/thirds/monaco-editor/min/vs/basic-languages/st/PaxHeader/st.js',
    '/css/thirds/monaco-editor/min/vs/basic-languages/swift/PaxHeader',
    '/css/thirds/monaco-editor/min/vs/basic-languages/swift/swift.js',
    '/css/thirds/monaco-editor/min/vs/basic-languages/swift/PaxHeader/swift.js',
    '/css/thirds/monaco-editor/min/vs/basic-languages/typescript/PaxHeader',
    '/css/thirds/monaco-editor/min/vs/basic-languages/typescript/typescript.js',
    '/css/thirds/monaco-editor/min/vs/basic-languages/typescript/PaxHeader/typescript.js',
    '/css/thirds/monaco-editor/min/vs/basic-languages/vb/PaxHeader',
    '/css/thirds/monaco-editor/min/vs/basic-languages/vb/vb.js',
    '/css/thirds/monaco-editor/min/vs/basic-languages/vb/PaxHeader/vb.js',
    '/css/thirds/monaco-editor/min/vs/basic-languages/xml/PaxHeader',
    '/css/thirds/monaco-editor/min/vs/basic-languages/xml/xml.js',
    '/css/thirds/monaco-editor/min/vs/basic-languages/xml/PaxHeader/xml.js',
    '/css/thirds/monaco-editor/min/vs/basic-languages/yaml/PaxHeader',
    '/css/thirds/monaco-editor/min/vs/basic-languages/yaml/yaml.js',
    '/css/thirds/monaco-editor/min/vs/basic-languages/yaml/PaxHeader/yaml.js',
    '/css/thirds/monaco-editor/min/vs/editor/editor.main.css',
    '/css/thirds/monaco-editor/min/vs/editor/editor.main.js',
    '/css/thirds/monaco-editor/min/vs/editor/editor.main.nls.js',
    '/css/thirds/monaco-editor/min/vs/editor/editor.main.nls.zh-cn.js',
    '/css/thirds/monaco-editor/min/vs/editor/PaxHeader',
    '/css/thirds/monaco-editor/min/vs/editor/PaxHeader/editor.main.css',
    '/css/thirds/monaco-editor/min/vs/editor/PaxHeader/editor.main.js',
    '/css/thirds/monaco-editor/min/vs/editor/PaxHeader/editor.main.nls.js',
    '/css/thirds/monaco-editor/min/vs/editor/PaxHeader/editor.main.nls.zh-cn.js',
    '/css/thirds/monaco-editor/min/vs/language/css',
    '/css/thirds/monaco-editor/min/vs/language/html',
    '/css/thirds/monaco-editor/min/vs/language/json',
    '/css/thirds/monaco-editor/min/vs/language/PaxHeader',
    '/css/thirds/monaco-editor/min/vs/language/typescript',
    '/css/thirds/monaco-editor/min/vs/language/css/cssMode.js',
    '/css/thirds/monaco-editor/min/vs/language/css/cssWorker.js',
    '/css/thirds/monaco-editor/min/vs/language/css/PaxHeader',
    '/css/thirds/monaco-editor/min/vs/language/css/PaxHeader/cssMode.js',
    '/css/thirds/monaco-editor/min/vs/language/css/PaxHeader/cssWorker.js',
    '/css/thirds/monaco-editor/min/vs/language/html/htmlMode.js',
    '/css/thirds/monaco-editor/min/vs/language/html/htmlWorker.js',
    '/css/thirds/monaco-editor/min/vs/language/html/PaxHeader',
    '/css/thirds/monaco-editor/min/vs/language/html/PaxHeader/htmlMode.js',
    '/css/thirds/monaco-editor/min/vs/language/html/PaxHeader/htmlWorker.js',
    '/css/thirds/monaco-editor/min/vs/language/json/jsonMode.js',
    '/css/thirds/monaco-editor/min/vs/language/json/jsonWorker.js',
    '/css/thirds/monaco-editor/min/vs/language/json/PaxHeader',
    '/css/thirds/monaco-editor/min/vs/language/json/PaxHeader/jsonMode.js',
    '/css/thirds/monaco-editor/min/vs/language/json/PaxHeader/jsonWorker.js',
    '/css/thirds/monaco-editor/min/vs/language/PaxHeader/css',
    '/css/thirds/monaco-editor/min/vs/language/PaxHeader/html',
    '/css/thirds/monaco-editor/min/vs/language/PaxHeader/json',
    '/css/thirds/monaco-editor/min/vs/language/PaxHeader/typescript',
    '/css/thirds/monaco-editor/min/vs/language/typescript/PaxHeader',
    '/css/thirds/monaco-editor/min/vs/language/typescript/tsMode.js',
    '/css/thirds/monaco-editor/min/vs/language/typescript/tsWorker.js',
    '/css/thirds/monaco-editor/min/vs/language/typescript/PaxHeader/tsMode.js',
    '/css/thirds/monaco-editor/min/vs/language/typescript/PaxHeader/tsWorker.js',
    '/css/thirds/monaco-editor/min/vs/PaxHeader/base',
    '/css/thirds/monaco-editor/min/vs/PaxHeader/basic-languages',
    '/css/thirds/monaco-editor/min/vs/PaxHeader/editor',
    '/css/thirds/monaco-editor/min/vs/PaxHeader/language',
    '/css/thirds/monaco-editor/min/vs/PaxHeader/loader.js',
    '/css/thirds/monaco-editor/PaxHeader/min',
    '/css/thirds/mpegts.js/mpegts.js',
    '/css/thirds/mpegts.js/PaxHeader',
    '/css/thirds/mpegts.js/PaxHeader/mpegts.js',
    '/css/thirds/PaxHeader/@fortawesome',
    '/css/thirds/PaxHeader/hls.js',
    '/css/thirds/PaxHeader/markdown-it',
    '/css/thirds/PaxHeader/monaco-editor',
    '/css/thirds/PaxHeader/mpegts.js',
    '/image/icon',
    '/image/icon/128.png',
    '/image/icon/144.png',
    '/image/icon/192.png',
    '/image/icon/256.png',
    '/image/icon/512.png',
    '/image/icon/favicon.ico',
    '/js/barcode.js',
    '/js/base.js',
    '/js/charts.js',
    '/js/codemirror.js',
    '/js/color-picker.js',
    '/js/cropperjs.js',
    '/js/exceljs.js',
    '/js/history.js',
    '/js/jimp.js',
    '/js/jsqr.min.js',
    '/js/markdown.js',
    '/js/ooxml-viewer.js',
    '/js/papaparse.js',
    '/js/qrcode.js',
    '/js/rest.js',
    '/js/rich-text.js',
    '/js/sdk.js',
    '/js/tinymce.js',
    '/js/tone.mp3',
    '/js/vue.js',
    '/js/xlsx.js',
    '/pages/index.json',
    '/pages/locations.json',
    '/pages/others',
    '/pages/samples.json',
    '/pages/scan.json',
    '/pages/settings.json',
    '/pages/site.json',
    '/pages/others/console.json',
    '/pages/others/crud-advance.json',
    '/pages/others/crud-edit.json',
    '/pages/others/crud-list.json',
    '/pages/others/crud-new.json',
    '/pages/others/crud-view.json',
    '/pages/others/editor.json',
    '/pages/others/form-basic.json',
    '/pages/others/index.html',
    '/pages/others/jsonp.js',
    '/pages/others/samples.html',
    '/pages/others/wizard.json',
    '/public/logo.png'
];

self.addEventListener('install', e => {
  e.waitUntil(
    caches.open(cacheName).then(cache => {
      return cache.addAll(filesToCache)
        .then(() => self.skipWaiting());
    })
  );
});

self.addEventListener('activate', function (e) {
  console.log('[ServiceWorker] Activate');
  e.waitUntil(
    caches.keys().then(function (keyList) {
      return Promise.all(keyList.map(function (key) {
        if (key !== cacheName) {
          // 清理旧版本
          console.log('[ServiceWorker] Removing old cache', key);
          return caches.delete(key);
        }
      }));
    })
  );
  // 更新客户端
  return self.clients.claim();
});

self.addEventListener('fetch', event => {
  event.respondWith(
    caches.open(cacheName)
      .then(cache => cache.match(event.request, {ignoreSearch: true}))
      .then(response => {
        // 使用缓存而不是进行网络请求，实现app秒开
        return response || fetch(event.request);
      })
  );
});